package com.keepsport.keepsportapi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 　　　　　   　▍ ★∴
 * 　　　．．．．▍▍．..．█▍ ☆ ★∵ ..../
 * 　　 　◥█▅▅██▅▅██▅▅▅▅▅▅▅▅▅███◤
 * 　　 　．◥███████████████◤
 * 　 ～～～～◥█████████████◤～～～～
 *
 * @author dyb
 * @create 2022-06-29 17:13
 */
@Data
@TableName("t_user_log")
@NoArgsConstructor
public class UserLog {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Integer uid;
    private Integer type;
    private String info;
    private String city;
    private String mobie;
    private Date ctime;

    public UserLog(Integer uid, Integer type, String info, String city, String mobie) {
        this.uid = uid;
        this.type = type;
        this.info = info;
        this.city = city;
        this.mobie = mobie;
        this.ctime=new Date();
    }
}
